module HomeHelper
  def current? syl
    syl[:accounts_id] == session[:accounts_id]
  end

  def online? member
    account = Accounts.find member[:accounts_id]
    if Time.now - account[:updated_at] < 3000
      image_tag "icon.gif", :alt=>"在线", :class=>"icon_online"
    end
  end

  def today_visitor_count id
    "coding"
  end
end
